package cn.com.tctec.faked;

import java.util.Calendar;


/**
 * 配置常量
 *
 * @author jiangz
 * @version 1.0 Created on 2019年9月6日 下午5:20:11
 */
public class Constant {

    // 日期时间格式
    public static final String DATETIME_FMT = "yyyy-MM-dd HH:mm:ss";
    // 周起始天
    public static final int FIRST_DAY_OF_WEEK = Calendar.MONDAY;

    public class InfluxDB {

        public static final String HIS_MEASUREMENT＿NAME = "test";
        public static final String HIS_MEASUREMENT_VALUE＿FIELD＿NAME = "valueField";
        public static final String HIS_MEASUREMENT_TAG_KEY = "tagF";
    }

    public class Statistic {

        // 控制打印选项
        public static final int QUARTER_HOUR    = 0b00000001;
        public static final int HOUR            = 0b00000010;
        public static final int BAN             = 0b00000100;
        public static final int DAY             = 0b00001000;
        public static final int WEEK            = 0b00010000;
        public static final int MONTH           = 0b00100000;
        public static final int QUARTER         = 0b01000000;
        public static final int YEAR            = 0b10000000;
        public static final int ALL             = 0b11111111;
        public static final int DAY_AND_HIGH    = 0b11111000;

        // 统计数据表名称
        public static final String QUARTER_HOUR_MEASUREMENT_NAME    = "dwh_data_quarter_hour";
        public static final String HOUR_MEASUREMENT_NAME            = "dwh_data_hour";
        public static final String BAN_MEASUREMENT_NAME             = "dwh_data_ban";
        public static final String DAY_MEASUREMENT_NAME             = "dwh_data_day";
        public static final String WEEK_MEASUREMENT_NAME            = "dwh_data_week";
        public static final String MONTH_MEASUREMENT_NAME           = "dwh_data_month";
        public static final String QUARTER_MEASUREMENT_NAME         = "dwh_data_quarter";
        public static final String YEAR_MEASUREMENT_NAME            = "dwh_data_year";

        public static final String DEVIATION_VALUE_FIELD_NAME = "deviation";
    }
}
